@PACKAGE_INIT@

# GameServerFramework CMake 配置文件
# 版本: 1.0.0
# 
# 使用方法:
# find_package(GameServerFramework REQUIRED)
# target_link_libraries(my_server GameServerFramework::server_framework)

# 获取包的根目录
get_filename_component(GameServerFramework_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(GameServerFramework_ROOT_DIR "${GameServerFramework_CMAKE_DIR}/../../.." ABSOLUTE)

# 设置包含目录（指向include，以支持 #include <gameserver/...> 的包含方式）
set(GameServerFramework_INCLUDE_DIR "${GameServerFramework_ROOT_DIR}/include")

# 包含导出的目标
include("${CMAKE_CURRENT_LIST_DIR}/GameServerFrameworkTargets.cmake")

# 设置变量
set(GameServerFramework_FOUND TRUE)
set(GameServerFramework_VERSION "1.0.0")
set(GameServerFramework_INCLUDE_DIRS ${GameServerFramework_INCLUDE_DIR})
set(GameServerFramework_LIBRARIES GameServerFramework::server_framework)

# 检查所有必需的组件
check_required_components(GameServerFramework)

# 提供有用的信息
if(NOT GameServerFramework_FIND_QUIETLY)
    message(STATUS "Found GameServerFramework: ${GameServerFramework_ROOT_DIR}")
    message(STATUS "  Version: ${GameServerFramework_VERSION}")
    message(STATUS "  Include dirs: ${GameServerFramework_INCLUDE_DIRS}")
    message(STATUS "  Libraries: ${GameServerFramework_LIBRARIES}")
endif()

